<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>请登录</title>
		<link rel="stylesheet" href="js/bootstrap-3.3.7-dist/css/bootstrap.min.css" />
		<link rel="stylesheet" href="css/HomePageCss/login.css" />
	</head>

	<body>

		<div>
			<div class="be-content pren">

				<div class="ioc_text">
					<div class="联想会员登录"></div>
				</div>

				<div>
					<form action="" id="form1">
						<div class="br-content">

							<div class="bootint">
								<span class="input-group-text "><i class="glyphicon glyphicon-user"></i></span>
								<input type="text" class="form-control form-control1 " id="username" name="username" placeholder="请输入用户名/手机号">
							</div>

							<div class="bootint">
								<span class="input-group-text"><i class="glyphicon glyphicon-lock"></i></span>
								<input type="password" class="form-control form-control1" id="userpsw" name="userpsw" placeholder="请输入用户密码">
							</div>

							<div class="br-text">
								<p>
									<a href="login_2.html">点此使用验证码登录</a>
								</p>
								<p>
									<span>还没有注册？</span>
									<a href="registe.html" target="_blank">点此注册新用户</a>
								</p>
							</div>
							<div style="padding-top: 25px">
								<input type="button" class="btn btn-danger btn-lg btn-block" value="登录" onclick="return checkMe()">
							</div>
							<div class="be-con">
								<span>正在使用账号密码登录</span>
							</div>
						</div>
					</form>
				</div>

			</div>
		</div>

	</body>

	<script type="text/javascript" src="js/HomePageJs/iquery-1.12.4/jquery-1.12.4.min.js"></script>
	<script type="text/javascript">
		// 验证form表单是否合法
		function checkMe() {
			// 错误提示信息
			var strMsg = "";
			// 用户名验证
			var username = document.getElementById("username").value;
			if(username == null || username == "") {
				// 增加提示信息
				strMsg += "请输入用户名!\n";
			}

			// 密码验证
			var userpsw = document.getElementById("userpsw").value;
			if(userpsw == null || userpsw == "") {
				// 增加提示信息
				strMsg += "请输入密码!\n";
			}

			// 判定整个表单是否可以进行提交
			if(strMsg == "") {
				// 验证通过
				return true;
			} else {
				// 验证不通过
				alert(strMsg);
				return false;
			}
		}
		// 手动提交form表单
		function doSubmit() {
			document.getElementById("form1").submit();
		}
	</script>

</html>